<style>.success{color:green;font-size:30px;}.error{color:red;font-size:10px;}.small{font-size:20px;}</style><script src="jquery-1.8.2.min.js" type="text/javascript"></script><script type="text/javascript">    $(document).ready(function(){    $('#clickId').click(function(){          var html  = '<p><input /><input class="remove" type="button" value="remove me"></p>';      $('#container').append(html);    });    $('.remove').live('click',function(){      //alert("Hello :)")      $(this).prev().remove();      $(this).remove();    })    });  </script><p>  <a href="#" id="clickId">click me</a></p><div id="container"></div>